package com.mcxx.modules.miniSalvation.order.service.write;

import com.mcxx.modules.miniSalvation.order.dao.write.OrderCareLinkWriteDao;
import com.mcxx.modules.miniSalvation.order.entity.OrderCareLinkEntity;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@TaTransactional
public class OrderCareLinkWriteService {

    @Autowired
    private OrderCareLinkWriteDao orderCareLinkWriteDao;



    public int insert(OrderCareLinkEntity orderCareLink) {
    	return orderCareLinkWriteDao.insert(orderCareLink);
    }


    public int insertIgnoreNull(OrderCareLinkEntity orderCareLink) {
    	return orderCareLinkWriteDao.insertIgnoreNull(orderCareLink);
    }


    public int update(OrderCareLinkEntity orderCareLink) {
    	return orderCareLinkWriteDao.update(orderCareLink);
    }


    public int updateIgnoreNull(OrderCareLinkEntity orderCareLink) {
    	return orderCareLinkWriteDao.updateIgnoreNull(orderCareLink);
    }


    public int delete(OrderCareLinkEntity orderCareLink) {
    	return orderCareLinkWriteDao.delete(orderCareLink);
    }


    public int updateByCareId(OrderCareLinkEntity orderCareLink) {
        return orderCareLinkWriteDao.updateByCareId(orderCareLink);
    }


}
